home *** CD-ROM | disk | FTP | other *** search
- unit AutomationServer1_TLB;
-
- // ************************************************************************ //
- // WARNING //
- // ------- //
- // The types declared in this file were generated from data read from a //
- // Type Library. If this type library is explicitly or indirectly (via //
- // another type library referring to this type library) re-imported, or the //
- // 'Refresh' command of the Type Library Editor activated while editing the //
- // Type Library, the contents of this file will be regenerated and all //
- // manual modifications will be lost. //
- // ************************************************************************ //
-
- // PASTLWTR : $Revision: 1.11.1.75 $
- // File generated on 12/03/99 17:22:50 from Type Library described below.
-
- // ************************************************************************ //
- // Type Lib: D:\Magazines\Work In Progress\46 - Jun 99\Clinic\COM\AutomationServer1.tlb
- // IID\LCID: {38A483A0-D898-11D2-96EC-444553540000}\0
- // Helpfile:
- // HelpString: AutomationServer Library
- // Version: 1.0
- // ************************************************************************ //
-
- interface
-
- uses Windows, ActiveX, Classes, Graphics, OleCtrls, StdVCL;
-
- // *********************************************************************//
- // GUIDS declared in the TypeLibrary. Following prefixes are used: //
- // Type Libraries : LIBID_xxxx //
- // CoClasses : CLASS_xxxx //
- // DISPInterfaces : DIID_xxxx //
- // Non-DISP interfaces: IID_xxxx //
- // *********************************************************************//
- const
- LIBID_AutomationServer1: TGUID = '{38A483A0-D898-11D2-96EC-444553540000}';
- IID_IClock: TGUID = '{38A483A1-D898-11D2-96EC-444553540000}';
- CLASS_Clock: TGUID = '{38A483A3-D898-11D2-96EC-444553540000}';
- type
-
- // *********************************************************************//
- // Forward declaration of interfaces defined in Type Library //
- // *********************************************************************//
- IClock = interface;
- IClockDisp = dispinterface;
-
- // *********************************************************************//
- // Declaration of CoClasses defined in Type Library //
- // (NOTE: Here we map each CoClass to its Default Interface) //
- // *********************************************************************//
- Clock = IClock;
-
-
- // *********************************************************************//
- // Interface: IClock
- // Flags: (4416) Dual OleAutomation Dispatchable
- // GUID: {38A483A1-D898-11D2-96EC-444553540000}
- // *********************************************************************//
- IClock = interface(IDispatch)
- ['{38A483A1-D898-11D2-96EC-444553540000}']
- function Get_DateAndTime: TDateTime; safecall;
- property DateAndTime: TDateTime read Get_DateAndTime;
- end;
-
- // *********************************************************************//
- // DispIntf: IClockDisp
- // Flags: (4416) Dual OleAutomation Dispatchable
- // GUID: {38A483A1-D898-11D2-96EC-444553540000}
- // *********************************************************************//
- IClockDisp = dispinterface
- ['{38A483A1-D898-11D2-96EC-444553540000}']
- property DateAndTime: TDateTime readonly dispid 1;
- end;
-
- CoClock = class
- class function Create: IClock;
- class function CreateRemote(const MachineName: string): IClock;
- end;
-
- implementation
-
- uses ComObj;
-
- class function CoClock.Create: IClock;
- begin
- Result := CreateComObject(CLASS_Clock) as IClock;
- end;
-
- class function CoClock.CreateRemote(const MachineName: string): IClock;
- begin
- Result := CreateRemoteComObject(MachineName, CLASS_Clock) as IClock;
- end;
-
- end.
-